package com.ayf.payment.game.api.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
    * 商户-等级-关系表
    */
@Getter
@Setter
@ToString
@Table(name = "g_merchant_level_relation")
public class MerchantLevelRelation implements Serializable {
    /**
     * 上级商户
     */
    @Column(name = "super_merchant_id")
    private Integer superMerchantId;

    /**
     * 下级商户
     */
    @Id
    @Column(name = "merchant_id")
    private Integer merchantId;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}